Skip to content

Add: Global Catalog logger#892

Merged
milov-dmitriy merged 11 commits intodevfrom
add_global_catalog_logger
Jan 21, 2026
Merged

Add: Global Catalog logger#892
milov-dmitriy merged 11 commits intodevfrom
add_global_catalog_logger

Conversation

@milov-dmitriy
Copy link
Collaborator

@milov-dmitriy milov-dmitriy commented Jan 16, 2026

Для Global Catalog добавлено логирование в отдельный файл.

Задача: 1198

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds separate logging functionality for the Global Catalog server by implementing dedicated logger instances through Dependency Injection (DI). The changes enable LDAP and Global Catalog servers to log to separate files (ldap_{time}.log and global_catalog_{time}.log) instead of sharing a single logger.

Changes:

  • Added two new logger types (LDAPLogger and GlobalCatalogLogger) with separate provider methods in the DI container
  • Refactored PoolClientHandler to accept a logger instance via constructor injection instead of using a module-level logger
  • Updated factory functions to inject the appropriate logger for each server type

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
app/ioc.py Defines new logger types and provider methods for LDAP and Global Catalog loggers with separate file handlers
app/ldap_protocol/server.py Refactored to accept logger via DI, removed module-level logger setup, updated all logging calls to use instance logger
app/multidirectory.py Updated factory functions to retrieve and inject appropriate logger instances for each server type
tests/conftest.py Updated test fixture to pass a test logger to PoolClientHandler
.package/docker-compose.yml Added volume mount for the logs directory to persist log files

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@milov-dmitriy
Copy link
Collaborator Author

в лс отказались от идеи прокидывать логер из ioc

@milov-dmitriy milov-dmitriy merged commit 2bf6e77 into dev Jan 21, 2026
5 checks passed
@milov-dmitriy milov-dmitriy deleted the add_global_catalog_logger branch January 21, 2026 11:20
rimu-stack added a commit that referenced this pull request Jan 28, 2026
* Add: directory attributes value validations (#857)

* Add: addRequest validate `new_name` (#862)

* fix: update push branch from main to dev in build workflow (#866)

* Http codes with map 774 (#836)

* Added dishka container to migrations (#868)

* Refactor: integrate NetworkPolicyGateway into LDAP session management (#863)

* Add default admin name 1111 (#872)

* Refactor syslog-ng configuration and enhance SyslogSender class (#871)

* Refactor: git checks (#869)

* Add: global LDAP server (#875)

* Fix: global ldap server (#877)

* Rework dependencies initialization in migrations (#880)

* add: UDP port mapping for LDAP service in docker-compose.yml (#882)

* Refactor ldap server (#867)

* Add: clear user password history (#874)

* Fix migration 275222846605 (#881)

* Add KRBAPIConnectionError handling to error map in krb5_router.py (#885)

* Add: directory is_system (#884)

* add: handling KRBAPIConnectionError in KerberosService exceptions (#886)

* Refactor: merge enterprise tests (#887)

* add: enqueue param for loguru (#888)

* Add: tmpfs and volume prune and kadmin_api depends on kdc (#891)

* New CI (#890)

* add: Contact entity type  (#896)

* refactor: rename services to System (#883)

* Hotfix262 (#898)

* Fix: user addRequest: recreate principal if exists already (#897)

* Enhance AddRequest: suppress KRBAPIPrincipalNotFoundError during principal deletion (#902)

* Refactor: cosmetic (#900)

* Add: Global Catalog logger (#892)

* Refactor: ModifyRequest (#893)

* Fix: Correct path assignment in _update_descendants function (#904)

* refactor: fix paths kadmin_api entrypoint (#903)

* add: rename services (#905)

* fix: replace services with system (#906)

---------

Co-authored-by: Milov Dmitriy <[email protected]>
Co-authored-by: Ruslan <[email protected]>
Co-authored-by: Misha-Shvets <[email protected]>
Co-authored-by: Михаил Михайлов <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants